package Engine.Sound;

import java.util.ArrayList;

/**
 * 
 * @author Lueko
 *
 */
public class SoundHandler {

	private ArrayList<Sound> sounds = new ArrayList<Sound>();
	
	public void addSound(Sound sound) {
		sounds.add(sound);
	}
	
	public Sound getSound(String name) {
		for (int i = 0; i < sounds.size(); i++) {
			if (sounds.get(i).getName().equals(name)) return sounds.get(i);
		}
		return null;
	}
	
}
